package tpf.designer.pattern.course6.behavior_pattern1.homework.exercise3;

public class MessageHandlerA extends MessageHandler {
    @Override
    public void handlerMessage(Message message) {
        if (message.getOrder() == 1){
            System.out.println("A");
        } else {
            if (getSuccessor() != null){
                getSuccessor().handlerMessage(message);
            }
        }
    }
}
